/**
 * 
 */
package org.vsg.stock.basic.persistence;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import org.springframework.dao.DataAccessException;
import org.vsg.common.hibernate.GenericDao;
import org.vsg.stock.basic.domain.StockDayIndicator;

/**
 * @author vison
 *
 */
public interface StockDayIndicatorDao extends GenericDao {
	
	/**
	 * 
	 * @param code
	 * @param date
	 * @return
	 * @throws DataAccessException
	 */
	StockDayIndicator getDayIndicator(String code , Date date) throws DataAccessException;
	
	/**
	 * 
	 * @param startDate
	 * @param toDate
	 * @return
	 * @throws DataAccessException
	 */
	List<StockDayIndicator> findDayIndicatorByDate(Date startDate , Date toDate) throws DataAccessException;
	
	/**
	 * 
	 * @param stockCode
	 * @return
	 * @throws DataAccessException
	 */
	List<StockDayIndicator> findAllDayIndicator(String stockCode) throws DataAccessException;
	
	/**
	 * 
	 * @param entities
	 * @throws DataAccessException
	 */
	public void saveAll(Collection<StockDayIndicator>  entities) throws DataAccessException;
}
